const state = {
  name: '新增项目',
  id: 0,
  key: ''
}
// 包含异步操作
const actions = {

}

const mutations = {
  SET_DB(state, dbInfo) {
    state.name = dbInfo.name
    state.id = dbInfo.id
    state.key = dbInfo.key
  }
}

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
